<?php
/**
 * Created by IntelliJ IDEA.
 * User: admin
 * Date: 3/28 0028
 * Time: 19:55
 */

namespace app\index\controller;


use think\Controller;
use think\Session;

class Base extends Controller
{


    /**
     * Base constructor.
     */
    public function __construct()
    {
        parent::__construct();

        if(!Session::get("shopid")){
           $this->error("登录已超时",url("Common/login"));//必须要有shopid
        }
    }
}